/*
 * @Author: 袁文帅
 * @Date: 2021-02-22 11:25:59
 * @LastEditTime: 2021-02-22 18:38:16
 * @LastEditors: last update your name
 * @人生亦有命，安能行叹复坐愁
 */
import React, { Component } from 'react'
import Com from "./views/com"
export default class App extends Component {
  state={
    number:1
  }
  render() {
    return (
      <div>
        <button onClick={()=>{
          this.setState({
            number:this.state.number+1
          })
          console.log(this.state.number)
        }}>点击</button>
        <Com number={this.state.number}></Com>
      </div>
    )
  }
}
